package study;

public class Person {
    String name;
    int age;
    static String country="china";

    public void setAge(int age){
        this.age = age;
    }

    public void setName(String name){
        this.name = name;
    }

    public void grow(){
        age++;
    }

    public  void Inetrduce() {
        System.out.println("我是"+name+"\n年龄："+age);
    }
    private  Person(){

    }
    public static void main(String[] args) {
        Person tom = new Person();
        tom.setName("Tom");
        tom.setAge(20);
        tom.grow();
        tom.Inetrduce();
    }
}
